home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / calc controlrgn / readme.doc < prev   
Encoding:
Text File  |  2000-06-23  |  1.1 KB  |  23 lines

  1. CalcControlRgn
  2. Last updated 8/28/99
  3.  
  4. This snippet shows how to call a CDEF to get the control's Region.
  5. You can make other calls to the CDEF using the same method.
  6.  
  7. This snippet works for both 68K and PowerPC. I included
  8. the both versions so you can see it works for both platforms. 
  9.  
  10. This is the first snippet to use my SimpleAppLib framework. SimpleAppLib
  11. was designed to hide the menial tasks of getting a Mac application
  12. running. Since SimpleAppLib handles the event loop and the gory details
  13. of a running application, this lets you see all the code that the
  14. snippet is trying to show without having to dig through thousands of
  15. lines of code. For example, this snippet is 255 lines of code. (126
  16. lines without comments) Hopefully this will let me get a lot more
  17. sample code out since I can now concentrate on the sample code and
  18. not waste my time reinventing the wheel.  
  19.  
  20. One of the benefits of SimpleAppLib is that it will shield you from 
  21. the gory details of the Mac OS. We will be releasing the SimpleAppLib
  22. project when I get the source code cleaned up for general distribution. 
  23.